package edu.zju.gis.dldsj.server.service.serviceImpl;

import edu.zju.gis.dldsj.server.base.BaseServiceImpl;
import edu.zju.gis.dldsj.server.entity.User;
import edu.zju.gis.dldsj.server.mapper.UserMapper;
import edu.zju.gis.dldsj.server.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends BaseServiceImpl<UserMapper, User, String> implements UserService {
    @Override
    public User select(String name, String password) {
        return mapper.check(name, password);
    }

    @Override
    public User selectByName(String name) {
        return mapper.selectByName(name);
    }
}
